package com.hu.edu;
import com.hu.edu.EduDao;
import com.hu.edu.Edu;
import com.hu.edu.EduService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("eduService_h")
public class EduServiceImpl implements EduService{
    @Autowired
    private EduDao edudao;
    @Override
    public List<Edu>findAll(){
        System.out.println("业务层：遍历全部用户");
        return edudao.findAll();
    }
    @Override
    public void findById(Edu edu){
        System.out.println("业务层：通过ID查询用户");
        edudao.findById(edu);
    }
}